#ifndef PUSHGATEWAY_PUSH_EXECUTE_H
#define PUSHGATEWAY_PUSH_EXECUTE_H

#include "php_pushgateway.h"
#include "client.h"
#include "scaler.h"

// #include <thread>
// #include <unistd.h>

using namespace std;

// void push_execute_ex(zend_execute_data *execute_data);
// void push_execute_internal(zend_execute_data *execute_data, zval *return_value);
// void push_thread(string addr, string query, string error, long execute_micro_time, string bucket);
void push_db_data(string addr, string query, string error, long execute_micro_time);

void push_execute_ex(zend_op_array *op_array TSRMLS_DC);
void push_execute_internal(zend_execute_data *execute_data_ptr, int return_value_used TSRMLS_DC);

#endif
